<?php
	session_start();
	mysql_connect("localhost", "sapmenet_admin", "a1s2d3f4g5h6j7") or die ("Problem with datebase");
	mysql_select_db("sapmenet_users");
	if (!isset($_SESSION['JID']))
	{
		header("Location: sapme.net/index.php");
	}
	else {
	$id=$_SESSION['id'];
	$result=mysql_query("SELECT city, info, birthdate FROM users WHERE ID={$id}");
	while($theResult = mysql_fetch_array($result, MYSQL_NUM))
	{
		echo ("<div id='info'><span id='infoCity'><strong>City:</strong> ".$theResult[0]."</span><br><br><div id='bashInfo'><strong>Introduction:</strong> ".$theResult[1]."</div><br><div id='infoBirhtDate'><strong>Birthdate:</strong> ");
		echo ($theResult[2]."</div>"."</div>");
	}
	}
?>